// JavaScript Document
function addLink(){
var body_element = document.getElementsByTagName('body')[0];
var selection;
selection = window.getSelection();
var pagelink = "<br/><br/>Link nguồn : <a href='"+"http://funseveryday.blogspot.com"+"'>"+"funny pictures"+"</a> | <a href='"+"http://truyenquanhta.blogspot.com"+"'>"+"ảnh vui"+"</a> ";
var copytext = selection + pagelink;
var newdiv = document.createElement('div');
newdiv.style.position='absolute';
newdiv.style.left='-99999px';
body_element.appendChild(newdiv);
newdiv.innerHTML = copytext;
selection.selectAllChildren(newdiv);
window.setTimeout(function() {
body_element.removeChild(newdiv);
},0);
}
document.oncopy = addLink;
